package com.cash.channel.svc.service.api;

import com.cash.channel.svc.service.base.ApplyAuditStatus;
import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.ApplyAuditStatusResponse;
import com.cash.channel.api.service.BaseApi;
import org.springframework.stereotype.Service;

@Service("applyAuditStatus")
public class CJH000012 implements BaseApi<ApplyAuditStatusResponse> {

    @Override
    public ApiResponseModel<ApplyAuditStatusResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        ApplyAuditStatus applyAuditStatus = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.查询进件审批结果, ApplyAuditStatus.class);
        return applyAuditStatus.doGetApplyAuditStatus(apiRequestModel);
    }

}
